import {
	https
} from "./router";

//设备id码
export function addDevice(data) {
	return https({
		url: 'company/user/addDevice',
		method: 'GET',
		data
	})
}

//获取验证码	
export function send(data){
	return https({
		url:'company/sms/send',
		method:"POST",
		data
	})
}

//企业端登录
export function innerlogin(data) {
	return https({
		url: 'company/User/login',
		method: 'POST',
		data
	})
}

//企业端公告
export function getDynamics() {
	return https({
		url: 'company/index/getDynamics',
		method: 'POST',
	})
}

//打卡时间
export function signTimes() {
	return https({
		url: 'company/Usersign/signTimes',
		method: 'POST',
	})
}

//今日打卡记录
export function todaySign() {
	return https({
		url: 'company/Usersign/todaySign',
		method: 'POST',
	})
}

//是否打卡
export function isSign() {
	return https({
		url: 'company/Usersign/isSign',
		method: 'POST',
	})
}

//今日是否需要打卡
export function todayClock() {
	return https({
		url: 'company/Usersign/checkSign',
		method: 'POST',
	})
}

//是否在打卡范围内
export function getDistance(data) {
	return https({
		url: 'company/Usersign/getDistance',
		method: 'POST',
		data
	})
}

//打卡
export function signing(data) {
	return https({
		url: 'company/Usersign/signing',
		method: 'POST',
		data
	})
}

//消息列表
export function Notices(data) {
	return https({
		url: 'company/Notices/index',
		method: 'POST',
		data
	})
}

//全部已读
export function allRead(data) {
	return https({
		url: 'company/Notices/allRead',
		method: 'POST',
		data
	})
}

//消息内容
export function Noticesread(data) {
	return https({
		url: 'company/Notices/read',
		method: 'POST',
		data
	})
}

//个人信息
export function innerinfo() {
	return https({
		url: 'company/User/index',
		method: 'POST',
	})
}

//修改个人信息
export function profile(data) {
	return https({
		url: 'company/user/profile',
		method: 'POST',
		data
	})
}

//盈亏列表
export function Productorder(data) {
	return https({
		url: 'company/Productorder/lists',
		method: 'POST',
		data
	})
}

//盈利排行榜
export function rankLists(data) {
	return https({
		url: 'company/Productorder/rankLists',
		method: 'POST',
		data
	})
}

//团队排行
export function teamRanks(data) {
	return https({
		url: 'company/Productorder/teamRanks',
		method: 'POST',
		data
	})
}

//工作量排行榜
export function WorkList(data) {
	return https({
		url: 'company/Workload/rankLists',
		method: 'POST',
		data
	})
}

//各项收支
export function profilecost(data) {
	return https({
		url: 'company/user/profile_cost',
		method: 'POST',
		data
	})
}

//提现
export function Withdraw(data) {
	return https({
		url: 'company/Withdraw/create',
		method: 'POST',
		data
	})
}

//提现列表
export function Withdrawlists(data) {
	return https({
		url: 'company/Withdraw/lists',
		method: 'POST',
		data
	})
}

//订单列表
export function Productlist(data) {
	return https({
		url: 'company/Productlisto/index',
		method: 'POST',
		data
	})
}

//收货地址
export function Transport(data) {
	return https({
		url: 'company/Transport/read',
		method: 'POST',
		data
	})
}

//快递信息
export function logisticsInfo(data) {
	return https({
		url: 'company/Productlisto/logisticsInfo',
		method: 'GET',
		data
	})
}


//我的团队
export function myTeam(data) {
	return https({
		url: 'company/user/myTeam',
		method: 'POST',
		data
	})
}

//部门
export function departments() {
	return https({
		url: 'company/index/departments',
		method: 'POST',
	})
}

//财务统计
export function statistics(data) {
	return https({
		url: 'company/user/statistics',
		method: 'POST',
		data
	})
}

//上传缴费凭证
export function changeprofilecost(data) {
	return https({
		url: 'company/user/change_profile_cost',
		method: 'POST',
		data
	})
}


//修改密码
export function changepwd(data) {
	return https({
		url: 'company/User/changepwd',
		method: 'POST',
		data
	})
}

//排行榜单
export function userranks(data) {
	return https({
		url: 'company/user/ranks',
		method: 'POST',
		data
	})
}

//上传
export function upload(data) {
	return https({
		url: 'company/common/upload',
		method: 'POST',
		data
	})
}

//web排行
export function webrank() {
	return https({
		url: 'api/Index/rankLists',
		method: 'POST'
	})
}


//假勤审批
export function officesList(data) {
	return https({
		url: 'company/Offices/lists',
		method: 'POST',
		data
	})
}

//审批操作
export function officesAudit(data) {
	return https({
		url: 'company/offices/audit',
		method: 'POST',
		data
	})
}

//终审
export function officesFinalAudit(data) {
	return https({
		url: 'company/offices/finalAudit',
		method: 'POST',
		data
	})
}